unary operation

Học thuật
Thân thiện
unary operation

A student writes a unary operation on the chalkboard.

Definition
  1. Noun:
    • An operation with exactly one operand: In mathematics, logic, and computer science, a "unary operation" is a function or calculation that takes a single input (called an operand) to produce a result. It operates on one element from a set.
Usage
  • The term "unary operation" is used primarily in formal, technical contexts such as mathematics, computer programming, and formal logic. It describes the simplest form of an operation, contrasting with binary (two operands) or ternary (three operands) operations.
Examples
  • Noun:
    • Negation is a common unary operation in arithmetic; for example, the operation that converts 5 into -5.
    • In programming, the increment operator (++) is a unary operation that increases a variable's value by one.
    • Logical NOT is a fundamental unary operation in Boolean algebra.
Advanced Usage
  • "To perform a unary operation": To execute or apply a function to a single operand.
    • The processor must perform a unary operation on the data before it can be compared.
Variants and Related Words
  • Unary (adj): Pertaining to or involving a single component or operand.
    • The language uses a unary minus sign for negative numbers.
  • Operand (n): The object or quantity on which an operation is performed.
  • Monadic operation (n): A synonym for "unary operation," often used in logic and functional programming.
Synonyms
  • Monadic operation: An operation on a single operand.
  • Singulary operation: A less common synonym for a unary operation.
Related Phrases
  • Unary operator: The symbol or function that denotes a unary operation (e.g., for negation, for logical NOT).
    • In C++, the dereference operator () is a unary operator.*
unary operation

A student writes a unary operation on the chalkboard.

Noun
  1. an operation with exactly one operand

Từ đồng nghĩa